]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-tray: Ensure that only a child can be added
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 1 May 2024 02:19:34 +0000 (04:19 +0200)
committerSimon McVittie <smcv@debian.org>
Sun, 13 Jul 2025 11:24:58 +0000 (12:24 +0100)
Origin: https://gitlab.gnome.org/3v1n0/gnome-shell/-/commits/tray-offscreen-xwindows
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2012388

Gbp-Pq: Topic tray-icons
Gbp-Pq: Name shell-tray-Ensure-that-only-a-child-can-be-added.patch

src/shell-tray-icon.c

index 39204bfe66f9f693db561248a0586d80c80f6d0b..9b79c2be0da6be1acbcda4d36915d1c94425cb60 100644 (file)
@@ -239,6 +239,7 @@ shell_tray_icon_set_child (ShellTrayIcon *tray_icon,
   MetaDisplay *display = shell_global_get_display (shell_global_get ());
 
   g_return_if_fail (tray_icon != NULL);
+  g_return_if_fail (tray_icon->tray_child == NULL);
   g_return_if_fail (tray_child != NULL);
 
   /* We do all this now rather than computing it on the fly later,